package com.ruicar.afs.cloud.apply.business.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruicar.afs.cloud.apply.common.entity.ApplySignRelation;
import com.ruicar.afs.cloud.apply.contract.condition.ComAttachmentCondition;
import com.ruicar.afs.cloud.apply.contract.vo.SignRelationVO;
import com.ruicar.afs.cloud.image.entity.ComAttachmentFile;

import java.util.List;

/**
 * @author: mingzhi.li
 * @date: 2020/8/7 16:45
 * @description:合同签约关系
 */
public interface ApplySignRelationService extends IService<ApplySignRelation> {

    /**
     * 获取签约关系表数据-进件和放款
     * @param condition
     * @return
     */
    public List<SignRelationVO> getSignRelation(ComAttachmentCondition condition);

    /**
     * 获取签约关系表数据-预审批
     * @param condition
     * @return
     */
    public List<SignRelationVO> getPreRelation(ComAttachmentCondition condition);

    /**
     * 保存电子签约关系 - 批量
     * @param comAttachmentFileList
     * @return
     */
    public void saveSignRelationList(List<ComAttachmentFile> comAttachmentFileList,String applyNo);

    /**
     * 通过业务编号、模板ID、客户ID查询签约关系信息
     * @param businessNo
     * @param templeId
     * @param custId
     * @return
     */
    public ApplySignRelation getSignRelationForParam(String businessNo,Long templeId,Long custId);

    /**
     * 保存电子签约关系-进件和放款
     * @param comAttachmentFileList
     * @return
     */
    public void savePreRelationList(List<ComAttachmentFile> comAttachmentFileList);

}
